package com.heima.stroke.rabbitmq;

import com.heima.modules.vo.StrokeVO;
import org.springframework.boot.test.context.SpringBootTest;
import org.junit.jupiter.api.Test;

import java.util.Date;


@SpringBootTest
public class TestMain {



   public static   void main(String [] args) {


        StrokeVO strokeVO = new StrokeVO();
        strokeVO.setId("yourIdValue");
        strokeVO.setPublisherId("yourPublisherIdValue");
        strokeVO.setInviterTripId("yourInviterTripIdValue");
        strokeVO.setInviteeTripId("yourInviteeTripIdValue");
        strokeVO.setUseralias("yourUserAliasValue");
        strokeVO.setAvatar("yourAvatarValue");
        strokeVO.setRole(1);  // 假设设置发布人角色为乘客，值为1
        strokeVO.setStartGeoLng("yourStartGeoLngValue");
        strokeVO.setStartGeoLat("yourStartGeoLatValue");
        strokeVO.setEndGeoLng("yourEndGeoLngValue");
        strokeVO.setEndGeoLat("yourEndGeoLatValue");
        strokeVO.setStartAddr("yourStartAddrValue");
        strokeVO.setStartDistance(10.5f);  // 设置起点距离，假设为10.5
        strokeVO.setEndAddr("yourEndAddrValue");
        strokeVO.setEndDistance(20.7f);  // 设置终点距离，假设为20.7
        strokeVO.setSuitability("yourSuitabilityValue");
        strokeVO.setQuantity(2);  // 假设设置数量为2
        strokeVO.setDepartureTime(new Date());  // 设置出发时间为当前时间
        strokeVO.setQuickConfirm(1);  // 设置快速确认状态，假设开启，值为1
        strokeVO.setStatus(0);  // 设置行程状态，假设为未接单，值为0
        strokeVO.setRevision(1);  // 设置乐观锁版本号，假设为1
        strokeVO.setCreatedBy("yourCreatedByValue");
        strokeVO.setCreatedTime(new Date());  // 设置创建时间为当前时间
        strokeVO.setUpdatedBy("yourUpdatedByValue");
        strokeVO.setUpdatedTime(new Date());  // 设置更新时间为当前时间



        MQProducer mqProducer = new MQProducer();
        mqProducer.sendOver(strokeVO);


    }
}
